#include "fxcc/imgui/Editor.h"
#include "fxcc/core/graph/common/ProjSub.h"

using namespace fxcc::graph::common;
using namespace fxcc::imgui;

template <>
bool Editor::Edit(const std::string& label, ProjSub& inst)
{

    CheckBoxInst<bool>("isOrtho", inst.m_IsOrtho);

    if (inst.m_IsOrtho)
    {
        EditInst<Viewport>("viewport ", inst.m_Viewport);

    }
    else
    {
        EditInst<Frustum>("frustum", inst.m_Frustum);
    }

    return false;
}
